//
//  OMColor.m
//  StudyingDemo
//
//  Created by GuoMs on 2018/9/5.
//  Copyright © 2018年 gms. All rights reserved.
//

#import "OMColor.h"
#import "UserCenter.h"

@interface OMColor()

@property (strong, nonatomic) UserCenter * manager;

@end

@implementation OMColor

+ (instancetype)shareColor {
    
    static OMColor *instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[OMColor alloc]init];
        instance.manager = [[UserCenter alloc]init];
    });
    
    return instance;
    
}


- (OMColor *)user {
    
    return self;
}


- (UserCenter *(^)(void))userCenter {
    
    return ^(void) {
        return self.manager;
    };
}

- (OMColor * (^)(void)) accountPage {
    return ^(void) {
        return self;
    };
}
- (UIColor * (^)(void)) startGameBtnTitle {
    
    return ^(void) {
        return [UIColor blackColor];
    };
}
- (UIColor * (^)(void)) normalTitle {
    return ^(void) {
        return [UIColor blueColor];
    };
}

- (UIColor * (^)(void)) redTitle {
    return ^(void) {
        return [UIColor redColor];
    };
}

- (UIColor * (^)(void)) contentTitle {
    return ^(void) {
        return [UIColor whiteColor];
    };
}

@end
